package com.gugee.ins.common.model.mysql.brand;

import java.io.Serializable;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

/**
 * @author yzz
 * @Date 2021-04-07 18:35:57
 */
@TableName(value = "ins_rel_brand_media")
public class InsRelBrandMedia implements Serializable{

    /**
     *品牌ID
     */

    @Getter
    @Setter
    @TableField(value="bid")
    private java.lang.Integer bid;

    /**
     *主键ID
     */
    @Getter
    @Setter
    @TableId(type = IdType.AUTO)
    private java.lang.Long id;

    /**
     *是否视频
     */
    @Getter
    @Setter
    @TableField(value="is_video")
    private java.lang.Boolean isVideo;

    /**
     *博主id
     */
    @Getter
    @Setter
    @TableField(value="owner_uid")
    private java.lang.Long ownerUid;

    /**
     *帖子来源类别
     */
    @Getter
    @Setter
    @TableField(value="product_type")
    private java.lang.String productType;

    /**
     *帖子分数
     */
    @Getter
    @Setter
    @TableField(value="score")
    private java.lang.Double score;

    /**
     *帖子编码
     */
    @Getter
    @Setter
    @TableField(value="shortcode")
    private java.lang.String shortcode;

    /**
     *帖子发表时间戳
     */
    @Getter
    @Setter
    @TableField(value="taken_time")
    private java.lang.Long takenTime;

    /**
     *更新时间
     */
    @Getter
    @Setter
    @TableField(value="update_time")
    private java.util.Date updateTime;

    @Getter
    @Setter
    @TableField(value="is_ad")
    private java.lang.Integer isAd;

    @Getter
    @Setter
    @TableField(value="is_sponsored")
    private java.lang.Boolean isSponsored;

    @Getter
    @Setter
    @TableField(value="product_tag_type")
    private java.lang.Integer productTagType;

    @Getter
    @Setter
    @TableField(value="is_brand_account")
    private java.lang.Boolean isBrandAccount;

    @Getter
    @Setter
    @TableField(value="media_id")
    private java.lang.Long mediaId;

    @Getter
    @Setter
    @TableField(value="like_count")
    private java.lang.Long likeCount;

    @Getter
    @Setter
    @TableField(value="comment_count")
    private java.lang.Long commentCount;

    @Getter
    @Setter
    @TableField(value="video_view_count")
    private java.lang.Long videoViewCount;

    @Getter
    @Setter
    @TableField(value="video_play_count")
    private java.lang.Long videoPlayCount;

    @Getter
    @Setter
    @TableField(value="er")
    private java.lang.Double er;


    @Override
    public int hashCode() {
        return this.getBid().hashCode()+this.getShortcode().hashCode();
    }

    @Override
    public boolean equals(Object obj) {
        if(this == obj){
            return true;
        }

        if(null == obj){
            return false;
        }

        if(getClass() != obj.getClass()){
            return false;
        }

        if(this.hashCode() == obj.hashCode()){
            return true;
        }

        return false;
    }
}